﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace facebook.businuss.netcore.sdk.Sdk
{
    public partial class AdAccount
    {
        APIContext context;
        string mId;
        public AdAccount(long id, APIContext context): this(id.ToString(), context)
        {
        }

        public AdAccount(string id, APIContext context)
        {
            mId = id.Replace("act_", "");

            this.context = context;
        }

        public APIRequestGetInsights getInsights()
        {
            return new APIRequestGetInsights(this.getPrefixedId(), context);
        }

        private String getPrefixedId()
        {
            return "act_" + mId;
        }
    }
}
